@import "./variable/variable.less";

.form-wrapper {
    flex: 1;
    overflow-y: auto;

    .el-form {
        min-width: @formWidth;
    }
}

.form-title {
    width: 100%;
    height: 36px;
    line-height: 36px;

    padding: 0 25px;
    background: @tableHeaderColor;

    color: @contentColor;
    font-size: @titleSize;
    font-weight: 500;

    margin: 24px 0;
}

.form-input {
    .el-input__inner {
        height: @formInputHeight;
        line-height: @formInputHeight;
        border: 1px solid @frameColor;
        padding: 0 12px;
        color: @contentColor;
    }

    .el-textarea__inner {
        padding: 5px 12px;
        border-color: @frameColor;
        color: @contentColor;
    }

    .el-textarea__inner:focus {
        border-color: @primaryColor;
    }

    .el-input__icon {
        line-height: @formInputHeight;
    }
}

.form-input.el-input--prefix .el-input__inner {
    padding-left: 30px;
}

.form-input.el-input--suffix .el-input__inner {
    padding-right: 30px;
}

.el-form-item__label {
    color: @contentColor;
}

.el-input.is-disabled .el-input__inner {
    color: @contentColor !important;
}

.form-input.el-input, .form-input.el-select {
    width: @formInputWidth;
}

.el-input.is-disabled .el-input__inner {
    border-color: @frameColor;
}

.el-form-item {
    margin-bottom: 24px;

    .el-form-item__label {
        line-height: @formInputHeight;
    }

    .el-form-item__content {
        line-height: @formInputHeight;
    }
}

// 自定义

.form-unit {
    font-size: 12px;
    color: #000;
    margin-left: 10px;
}

.form-disabled {
    display: block;
    width: @formInputWidth;
    line-height: @formInputHeight;
    height: @formInputHeight;
    border: 1px solid @frameColor;
    padding: 0 12px;
    border-radius: 4px;

    background: #F5F7FA;
    box-sizing: border-box;
}

.form-area-disabled {
    display: block;

    width: 828px;
    min-height: 54px;
    line-height: 1.5;
    border: 1px solid @frameColor;
    padding: 5px 12px;
    border-radius: 4px;

    background: #F5F7FA;
    box-sizing: border-box;

    word-break: break-all;
}

.form-text-item {
    margin-bottom: 12px;

    &:last-of-type {
        margin-bottom: 24px;
    }

    .el-form-item__label {
        line-height: 20px;
    }

    .el-form-item__content {
        line-height: 20px;
    }

    .amount {
        color: #DC0016;
        margin-right: 24px;
    }
}

.form-lower-margin {
    margin-bottom: 6px;
}

.form-extra-line {
    display: flex;
    align-items: center;

    height: 30px;
    font-size: 12px;

    padding-right: 100px;
    margin-top: 2px;

    .cl-button {
        font-size: 12px !important;
        padding: 1px 6px !important;
    }

    .fill-width {
        flex: 1;
    }
}
